package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.Kms;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author YuJiBiao
 * @version: 1.0
 * @Date 2020/7/8 16:41
 **/
public interface KmsMapper extends BaseMapper<Kms> {


    /**
     * 根据条件查询用户列表
     */
    Page<Map<String, Object>> selectKmsList(@Param("page") Page page,@Param("index") Integer index,@Param("blockId") String blockId);


    List<Kms> selectKmsListData(@Param("beginTime") String beginTime,
                           @Param("endTime") String endTime);


    List<Map> selectKmsListById(@Param("id") Long id);

    Page<Map<String, Object>> selectkmsDistributionList(@Param("page") Page page,@Param("index") Integer index,@Param("blockId") String blockId);

    Page<Map<String, Object>> connectionKeyList(@Param("page") Page page,@Param("index") Integer index,@Param("blockId") String blockId,@Param("id") Long id);

    List<Kms>  bakKms();
}
